#!c:/Python24/python.exe
"""
    This file is part of keg.

    Keg is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Keg is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Keg.  If not, see <http://www.gnu.org/licenses/>.




    This file contains all the imports that Keg will use. If you have a module
    you want to use, here'll be a great place to import it. Note however that
    simply because you import a module doesn't guarantee that it will run for
    a given url. You will still have to register it for that url.

"""




def remember_form_values(form, response_dict):
    """
    This method simply populates the response object with all
    form variables.
    """
    new_dict = {}
    new_dict.update(response_dict)
    
    for key in form.keys():
        new_dict[key] = form[key].value


    return new_dict
